p{
    background-color: antiquewhite;
    padding: 10px;
    text-indent: 2em;
    line-height:30px;
    letter-spacing: 4px;
}
/*class属性*/
p.Red {
    background-color: red;
    word-spacing: 10px;
    text-decoration: blink;
}

p.Image {
    background-image: url(../image/riven.jpg);
    background-repeat: no-repeat;
    /*background-position: center;*/
    background-position: 50% 20%;
    text-align: right;
}
/*id属性*/
p#ID {
    text-indent: 0px;
    text-decoration: overline;
}
/*其他属性*/
input[type = button] {
    width: 80px;
    text-align: right;
    white-space: normal;
    font-family: "Apple Braille";
    font-style: italic;
}
/*伪类*/
a:link {
    color: #0000FF;
    text-decoration: none;
}
a:visited {
    color: #007777;
    text-decoration: none;
}
a:hover {
    color: #ff863a;
    text-decoration: underline;
}
a:active {
    color: darkgrey;
    text-decoration: underline;
}

#table {
    font-size: 1em;
    border-collapse: collapse;
    width: 640px;
}

/*ID包含*/
#table th, #table td {
    border: 1px solid #98bf21;
    text-align: left;
    padding: 6px;
}

#table th {
    font-size: 1.1em;
    color: white;
    background-color: #A7C942;
}

#table tr.alt {
    background-color: #EAF2D3;
}

/*包含选择器*/
p em {
    color: #990000;
}
/*直接子元素选择器*/
p > strong {
    color: red;
}
/*相邻兄弟选择器*/
h1 + p {
    margin-top: 50px;
}